package com.itshare.video.pojo.bo;

import com.itshare.video.common.aop.xss.annontation.CleanXSS;
import com.itshare.video.common.core.constant.PatternsConstants;
import com.itshare.video.common.core.validator.support.phone.Phone;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author lyr
 * @create 2020/11/2 13:49
 */
@Data
public class FeedBackMessageBO {
    /**
     * 用户反馈内容
     */
    @CleanXSS(type = CleanXSS.type.RemoveScriptThenEscape)
    private String feedbackContent;
    @CleanXSS
    @NotBlank(message = "反馈标题不能为空")
    private String feedbackTitle;

    @Phone
    private String phone;

    @NotNull(message = "图片路径不为空")
    @Pattern(regexp = PatternsConstants.urlPattern,message = "图片链接不为空")
    private String image;



}
